package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.entity.Program;
import com.ruoyi.common.core.domain.entity.ProgramRecord;
import com.ruoyi.system.mapper.ProgramRecordMapper;
import com.ruoyi.system.service.ProgramRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ProgramRecordServiceImpl implements ProgramRecordService {
    @Autowired
    ProgramRecordMapper programRecordMapper;
    @Override
    public List<ProgramRecord> selectList(Program programRecord) {
        return null;
    }

    @Override
    public ProgramRecord selectById(Long id) {
        return programRecordMapper.selectById(id);
    }

    @Override
    public Boolean create(ProgramRecord programRecord) {
        return programRecordMapper.insert(programRecord) == 1;
    }

    @Override
    public Boolean update(ProgramRecord programRecord) {
        return programRecordMapper.update(programRecord) == 1;
    }

    @Override
    public Boolean deleteById(Long id) {
        return programRecordMapper.deleteById(id) == 1;
    }

    @Override
    public Boolean updateProgramRecord(ProgramRecord programRecord) {
        return programRecordMapper.update(programRecord) == 1;
    }

    @Override
    public Boolean createProgramRecord(ProgramRecord programRecord) {
        return programRecordMapper.insert(programRecord) == 1;
}

    @Override
    public List<ProgramRecord> selectAll(ProgramRecord programRecord) {
        return programRecordMapper.selectAll(programRecord);
    }

    @Override
    public List<ProgramRecord> selectProgramRecordList(ProgramRecord programRecord) {
        return programRecordMapper.selectList(programRecord);
    }
}
